<template>
    <Title></Title>
    <!-- 内容的开始 -->
		<div class="content">
			<div class="content-left">
				  <ContentItem v-for="item in conList" :imgsrc="item.imgsrc" :key="item.id"></ContentItem>
			</div>
			<div class="content-right"></div>
		</div>
		<!-- 内容的结束 --> 
</template>

<script>
import Title from './components/Title.vue'
import ContentItem from './components/ContentItem.vue'

export default {
  name: 'App',
  data(){
    return{
        conList:[
            {id:0,imgsrc:'http://www.shijiayi.top/attachment/20211009/c4182c86187c441b9ad54c743e007aa3.jpeg'},
            {id:1},
            {id:2,imgsrc:'http://www.shijiayi.top/attachment/20211009/c4182c86187c441b9ad54c743e007aa3.jpeg'},
            {id:3,}
        ]
    }
  },
  components:{
      Title,
      ContentItem
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

.content{
  width: 1170px;
  margin: 0 auto;
}
.content-left{
  width: 70%;
  float: left;
}
.content-right{
  width: 30%;
  height: 500px;
  float: left;
  background-color: #2F4056;
}
</style>
